<?php
	include_once("king_head.php");	
	include_once("ClsSebent//Content_class.php");	
	
	$page_option=new Content_class();
	
	if($_REQUEST['site_id'])
	{
		$_SESSION['SITE_ID']=$_REQUEST['site_id'];	
		
		
		
		if($_SESSION['SITE_ID']==101)
		{
			$_SESSION['USER_TYPE']="A";	
			
			?> <script>location.replace("page_content.php") </script><?php
		}
		else
		{	
			$_SESSION['USER_TYPE']="R";	
		}
	
	}
	
	if(!$_SESSION['SITE_ID'])
	{	
		?>
			<script> location.replace("index.php"); </script>
		<?php
	}
	
	$query=" select * from  `reseller_page_add`  where `site_id`='".$_SESSION['SITE_ID']."'  AND `update`='' ";
	
	$result=mysql_query($query);
	
	if(mysql_num_rows($result))
	{
	
?>
		<link href="wis.css" rel="stylesheet" type="text/css" />
		
		
		<form id="form1" name="form1" method="post" action="update_page.php">	
<table width="100%" border="0" cellspacing="2" cellpadding="2">
  <tr>
    <td height="40" valign="middle" class="wisbig"><div align="center" class="wisheading">Would you like to update these page/s </div></td>
  </tr>
</table>

<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr class="tablefirstrow">
    <td>SN</td>
    <td>Page Title </td>
    <td>Date</td>
  </tr>
  
  <?php
  
		
	$i=1;
	//echo $query;		
	while($line=mysql_fetch_array($result,MYSQL_ASSOC))
	{
					
  
	  ?>
	  <tr class="wis">
		<td><?php echo $i; ?></td>
		<td><?php echo $page_option->get_data('site_page',$line['page_id'],'page_title'); ?></td>
		<td><?php echo $line['datetime']; ?></td>
  </tr>
	   <?php
	   $i++;
	  }
  
  ?>
  <tr>
    <td>&nbsp;</td>
    <td><label>
      <div align="center">
        <input type="submit" name="Submit" value="Accept" />
        </div>
    </label>    <div align="center"></div></td>
    <td>&nbsp;</td>
  </tr>
</table>
 </form>
 <form action="page_content.php" method="get">
 <table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td><label>
      <div align="center">
        <input type="submit" name="Submit2" value=" Show Me letter" />
        </div>
    </label></td>
  </tr>
</table>
</form>
<?php

}
else
{
	?> <script>
    
	location.replace("page_content.php");
    </script> <?php
}